<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel (optional) -->

<!--        <div class="aside-top">-->
<!--                            <img src="/statics/images/logo.png" class="img" alt="User Image" />-->
<!--        </div>-->

        <!-- /.search form -->

        <!-- Sidebar Menu -->
        <ul class="sidebar-menu" data-widget="tree">
            <?php foreach ($menus[0]['menu'] as $menu): ?>
                <li <? if (isset($menu['children'])): ?>class="treeview"<?php endif; ?>>
                    <a>
                        <i class="<?= $menu['icon'] ?>"></i> <span><?= $menu['name'] ?></span>
                    </a>
                    <? if (isset($menu['children'])): ?>
                        <ul class="treeview-menu">
                            <?php foreach ($menu['children'] as $child): ?>
                                <li><a href="<?=$child['url']?>"><?=$child['name']?></a></li>
                            <? endforeach; ?>
                        </ul>
                    <?php endif; ?>
                </li>
            <?php endforeach; ?>
            <!--<li>
                <a href="/hotel/index.html"
                ><i class="fa fa-hotel"></i> <span>酒店管理</span></a
                >
            </li>
            <li>
                <a href="/region/index.html"
                ><i class="fa fa-map"></i> <span>区域管理</span></a
                >
            </li>
            <li class="treeview">
                <a href="#"
                ><i class="fa fa-building"></i> <span>城市管理</span>
                    <span class="pull-right-container">
                  <i class="fa fa-angle-right pull-right"></i>
                </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="/city/index.html">城市列表</a></li>
                    <li><a href="/city/vihicle.html">车辆列表</a></li>
                    <li><a href="/city/shop.html">免税店列表</a></li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#"
                ><i class="fa fa-cogs"></i> <span>系统管理</span>
                    <span class="pull-right-container">
                  <i class="fa fa-angle-right pull-right"></i>
                </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="/system/user.html">用户管理</a></li>
                    <li><a href="/system/blacklist.html">黑名单管理</a></li>
                </ul>
            </li>-->
        </ul>
        <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
</aside>